package com.etooling.framework.entity;


import com.etooling.framework.svo.AbstractEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * 附件
 */
@Entity
@Table(name = "t_login_log", schema = "framework")
public class LoginLog extends AbstractEntity {

    Employee employee;
    Date loginTime;
    String loginResults;
    String status;
    String loginId;
    String loginPwd;
    String remoteIp;
    String sourceType;//来源,移动端，电脑

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    @ManyToOne(targetEntity = Employee.class, fetch = FetchType.EAGER)
    @JoinColumn(name = "employee_id")
    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getLoginResults() {
        return loginResults;
    }

    public void setLoginResults(String loginResults) {
        this.loginResults = loginResults;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public String getRemoteIp() {
        return remoteIp;
    }

    public void setRemoteIp(String remoteIp) {
        this.remoteIp = remoteIp;
    }
}